﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AutoMapper;
using HROReporting.Services.ViewModels;
using HROReporting.Model.Studenten;

namespace HROReporting.Services.Mapping
{
    public static class StudentMapper
    {
        public static StudentView ConvertToStudentDetailView(this Student student)
        {
            return Mapper.Map<Student, StudentView>(student);
        }

        public static IEnumerable<StudentView> ConvertToStudentIndexView(this IEnumerable<Student> studenten)
        {
            return Mapper.Map<IEnumerable<Student>, IEnumerable<StudentView>>(studenten);
        }
    }
}
